/** * Created by Administrator on 2018-11-26. */public class Test2 {    public static void main(String[] args) throws InterruptedException{        Thread t1 = new Thread(){            @Override            public void run(){                int i = 0;                while (i<10){                    System.out.println("ti:runing.....");                    i++;                }            }        };        t1.start();       // Thread.sleep(10);        System.out.println("11");        Thread.sleep(20000);        System.out.println("22");//      System.out.println("stop");//      t1.interrupt();    }}